package com.zys.el.time.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 频道
 * @TableName channel
 */
@TableName(value ="channel")
@Data
@ApiModel("频道实体类")
public class Channel implements Serializable {
    /**
     * 频道id
     */
    @TableId
    @ApiModelProperty("话题id")
    private Long id;

    /**
     * 频道名称
     */
    @ApiModelProperty("频道名称")
    private String name;

    /**
     * 频道主id
     */
    @ApiModelProperty("频道主id")
    private Long ownerId;

    /**
     * 频道封面
     */
    @ApiModelProperty("频道封面")
    private String icon;

    /**
     * 频道人数
     */
    @ApiModelProperty("频道人数")
    private Integer member;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 是否删除(0-未删, 1-已删)
     */
    @TableLogic
    @TableField(select = false)
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}